﻿using System.Collections.Generic;

using Db4objects.Db4o;


namespace DataAccess
{

    /// <summary>
    /// Query action interface.
    /// </summary>
    public interface IQueryAction<GenericType>
                        where GenericType : class
    {

        /// <summary>
        /// Performs a query for data against the database.
        /// </summary>
        /// <param name="db">The database handle</param>
        /// <returns>The list of objects retrieved by the query</returns>
        IList<GenericType> PerformQuery(IObjectContainer db);

    }

}

